var express = require("express");
var router = express.Router();

router.get("/hello", function (req, res) {
    res.send("house");
})

router.post("/create", function (req, res) {
    res.json({name: "添加房屋信息", code: 1});
})
router.post("/update", function (req, res) {
    res.json({name: "修改房屋信息", code: 2});
})
router.post("/updateReport", function (req, res) {
    res.json({name: "编辑信息", code: 3});
})
router.get("/get", function (req, res) {
    res.json({name: "获取信息", code: 4});
})
router.get("/role", function (req, res) {
    res.json({name: "获取角色数据", code: 5});
})
router.get("/list", function (req, res) {
    res.json({name: "获取列表数据", code: 6});
})
router.get("/AllList", function (req, res) {
    res.json({name: "获取列表数据", code: 7});
})
router.get("/documentList", function (req, res) {
    res.json({name: "获取列表数据", code: 8});
})
router.get("/delete", function (req, res) {
    res.json({name: "删除房屋信息", code: 9});
})
router.get("/object", function (req, res) {
    res.json({name: "获取shp数据", code: 10});
})
router.get("/getId", function (req, res) {
    res.json({name: "根据id获取房屋信息", code: 11});
})
router.get("/getPosData", function (req, res) {
    res.json({name: "获取角色数据", code: 12});
})
router.get("/getSecondData", function (req, res) {
    res.json({name: "获取角色数据", code: 13});
})
router.post("/updateGroupId", function (req, res) {
    res.json({name: "撤销信息", code: 14});
})
router.get("/getdateData", function (req, res) {
    res.json({name: "获取角色数据", code: 15});
})
router.get("/getPosDate", function (req, res) {
    res.json({name: "获取日期路径数据", code: 16});
})
router.get("/getDistinctDate", function (req, res) {
    res.json({name: "获取影像日期数据", code: 17});
})
router.get("/excelList", function (req, res) {
    res.json({name: "获取Excel数据", code: 18});
})
router.get("/posQuery", function (req, res) {
    res.json({name: "获取核查点", code: 19});
})
router.get("/barChart", function (req, res) {
    res.json({name: "社区数据", code: 20});
})
router.get("/pieChart", function (req, res) {
    res.json({name: "核查进度数据", code: 21});
})

module.exports = router;